<?
include_once "accesscontrol.php";


$q1 = "select * from job_skills where uname = \"$_SESSION[uname]\" ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);

$a11 = stripslashes($a1[SK_d]);
$a22 = stripslashes($a1[expertise]);
?>


<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=600,height=400,left = 100,top = 50');");
}
</script>



<SCRIPT LANGUAGE="JavaScript">

function checkFields() {
missinginfo = "";

if (document.form.SK_d.value == "") {
missinginfo += "\n     - your skills";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}

</script>

<br>
<form method=post action=EditSkills2.php   name=form onSubmit="return checkFields();">
<table align=center width=460 class=BlackText>
<caption align=center class=HeaderClass>Additional Skills</caption>
<tr>
	<td valign=top align=left><b>Skills: </b>(describe your skills: languages, courses, etc.)</td>
</tr>
<tr>
	<td><textarea name=SK_d rows=6 cols=46><?=$a11?></textarea></td>
</tr>

<tr>
	<td valign=top align=left><b>Expertise: </b>(describe your strength)</td>
</tr>
<tr>
	<td><textarea name=expert rows=6 cols=46><?=$a22?></textarea></td>
</tr>

<tr>	
	<td><input type=submit name=submit value="Save and finish"></td>
</tr>
</table>

<? include_once('../footer.php'); ?>